package concept.misc;

import concept.misc.pack2.SubClass;

class Parent
{
	int age;
	
	Parent()
	{
		
	}
	
	Parent(int aAge)
	{
		age = aAge;
	}
}

class Child extends Parent
{
	int age;

	Child()
	{
		this(4);
	}
	
	Child(int aAge)
	{
		super(aAge);
		age = aAge;
	}
}

public class InheritanceLab
{
	static void doConstructor()
	{
		Child c = new Child();
	}
	
	static void doMethodModifier()
	{
		SubClass sub = new SubClass();
		sub.callMe();
	}
	public static void main(String[] args)
	{
		doMethodModifier();
		doConstructor();
	}
	
}
